<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>绵阳城市学院宿舍管理系统</title>
    <link rel="icon" href="images/3.icon">
    <link rel="stylesheet" href="./layui/css/layui.css">
    <style>
        .not{
            pointer-events: none;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">宿舍管理系统</div>

        <ul class="layui-nav layui-layout-left">
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">Your Profile</a></dd>
                    <dd><a href="">Settings</a></dd>
                    <dd><a href="">Sign out</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item not">
                    <a href="javascript:;">寝室管理员</a>
                    <dl class="layui-nav-child">
                        <dd><a href="AllStudentInformation.jsp" target="iframename">查询寝室入住信息</a></dd>
                        <dd><a href="addStudent.jsp" target="iframename">新增学生入住信息</a></dd>
                        <dd><a href="absenceStudent.jsp" target="iframename">统计学生未归信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item not">
                    <a href="javascript:;">辅导员</a>
                    <dl class="layui-nav-child">
                        <dd><a href="fudaoStudent.jsp" target="iframename">管理本班学生寝室信息</a></dd>
                        <dd><a href="abseceFudaoStudent.jsp" target="iframename">查询本班学生未归信息</a></dd>
                        <dd><a href="addStudentAssistant.jsp" target="iframename">添加本班学生助理信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item not">
                    <a href="javascript:;">学生助理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="studentAssistant.jsp" target="iframename">录入学生就寝信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item not">
                    <a href="javascript:;">监管者</a>
                    <dl class="layui-nav-child">
                        <dd><a href="manageDormitory.jsp" target="iframename">管理寝室状态</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body" id="LAY_body">
        <iframe name="iframename" id="iframename" src="main.jsp" width="100%" height="100%"></iframe>
    </div>
    <div class="layui-footer" style="text-align: center">
        <img src="images/4.jpg" width="200px">
    </div>
</div>
<script src="./layui/layui.js"></script>
<script>

    layui.use('element'), function(){
        let element = layui.element;
    }
    var item=document.querySelectorAll('.layui-nav-item')
    var value=localStorage.getItem("value")
    if (value==1){
        item[2].classList.remove('not')
    }
    if (value==2){
        item[3].classList.remove('not')
    }
    if (value==3){
        item[4].classList.remove('not')
    }
    if (value==4){
        for (var i=2;i<=5;i++){
            item[i].classList.remove('not')
        }
    }
</script>
</body>
</html>
